package com.dronff;


import com.dronff.functional.LockBefore;
import com.dronff.protocol.TangProtocol;

public interface BlockSend {

    /**
     * 调用该方法后会发送数据并且阻塞线程，可在lockBefore回调中保存Lock对象的句柄并在合适的时候解锁
     */
    public void sendData(byte[] bytes, LockBefore lockBefore) throws InterruptedException;
    public void sendTangProtocolData(TangProtocol tangProtocol, LockBefore lockBefore) throws InterruptedException;
}
